package com.yupi.springbootinit.statemachine.enums;

import com.yupi.springbootinit.statemachine.core.Event;

/**
 * 工序实例事件枚举
 */
public enum ProcessInstanceEventEnum implements Event {
    
    START_PROCESS("START_PROCESS", "开始工序", "PROCESS_INSTANCE"),
    COMPLETE_PROCESS("COMPLETE_PROCESS", "完成工序", "PROCESS_INSTANCE"),
    REQUEST_INSPECTION("REQUEST_INSPECTION", "申请检验", "PROCESS_INSTANCE"),
    START_INSPECTION("START_INSPECTION", "开始检验", "PROCESS_INSTANCE"),
    REJECT_PROCESS("REJECT_PROCESS", "不合格返工", "PROCESS_INSTANCE"),
    APPROVE_PROCESS("APPROVE_PROCESS", "检验合格", "PROCESS_INSTANCE");
    
    private final String code;
    private final String description;
    private final String eventType;
    
    ProcessInstanceEventEnum(String code, String description, String eventType) {
        this.code = code;
        this.description = description;
        this.eventType = eventType;
    }
    
    @Override
    public String getCode() {
        return code;
    }
    
    @Override
    public String getDescription() {
        return description;
    }
    
    @Override
    public String getEventType() {
        return eventType;
    }
}